package com.hjd.shop.constant;

/**
 * @Author: hjd
 * @Date: 2020/10/29 0029 22:02
 */
public enum MqState {
    /**
     * 消费中
     */
    CONSUMING(2),
    /**
     * 已经消费
     */
    CONSUMED(0),
    /**
     * 处理失败
     */
    CONSUME_FAIL(1);

    private int code;

    MqState(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

}
